export const Demo = `
~~~js
import React, { useState } from 'react';
import { Card, Content, Switch } from 'react-fule-ui';

export default function FullCard() {
  const [checkedValue, setCheckedValue] = useState(false);
  const getData = () => {
    setCheckedValue(!checkedValue);
  };
  return (
    <Content>
      <Content.Header>右部容器Content</Content.Header>
      <Content.Body full={checkedValue}>
        <Card>
          <Card.Body>
            <Switch
              label={checkedValue ? '平铺' : '默认'}
              onChange={getData}
              style={{ marginBottom: 20 }}
            />
            </Card.Body>
        </Card>
      </Content.Body>
    </Content>
  )
}
~~~`;
